package com.test.designPattern.ch28;

/**
 * @ClassName CompositeEntity
 * @Description 组合实体
 * @Author 维康
 * @Date 2018/7/2 16:43
 * @Version 1.0
 **/
public class CompositeEntity {
    private CoarseGrainedObject cgo = new CoarseGrainedObject();

    public void setData(String data1, String data2){
        cgo.setData(data1, data2);
    }

    public String[] getData(){
        return cgo.getData();
    }
}
